<html>
<head><meta charset="utf-8"><title>Question about generic associated lifetime · wg-traits · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/index.html">wg-traits</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/Question.20about.20generic.20associated.20lifetime.html">Question about generic associated lifetime</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="166732527"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/144729-wg-traits/topic/Question%20about%20generic%20associated%20lifetime/near/166732527" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Charles Lew <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/Question.20about.20generic.20associated.20lifetime.html#166732527">(May 28 2019 at 16:14)</a>:</h4>
<p>I'm trying to write something just like the streaming iterator example:<br>
<a href="https://play.rust-lang.org/?version=nightly&amp;mode=debug&amp;edition=2018&amp;gist=03a5e947daf22ea546aa67bab822929f" target="_blank" title="https://play.rust-lang.org/?version=nightly&amp;mode=debug&amp;edition=2018&amp;gist=03a5e947daf22ea546aa67bab822929f">https://play.rust-lang.org/?version=nightly&amp;mode=debug&amp;edition=2018&amp;gist=03a5e947daf22ea546aa67bab822929f</a></p>
<p>But it errors: error[E0109]: lifetime arguments are not allowed for this type <br>
Is this a known bug? Or am i writing the code wrong?Question about generic associated lifetime</p>



<a name="167007382"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/144729-wg-traits/topic/Question%20about%20generic%20associated%20lifetime/near/167007382" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Sunjay Varma <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/Question.20about.20generic.20associated.20lifetime.html#167007382">(May 31 2019 at 15:37)</a>:</h4>
<p>As far as I know, GATs are not fully implemented yet so no code that uses them will actually work.</p>



<a name="167007397"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/144729-wg-traits/topic/Question%20about%20generic%20associated%20lifetime/near/167007397" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Sunjay Varma <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/Question.20about.20generic.20associated.20lifetime.html#167007397">(May 31 2019 at 15:37)</a>:</h4>
<p>Sorry about that. People are working on it!</p>



<a name="167022543"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/144729-wg-traits/topic/Question%20about%20generic%20associated%20lifetime/near/167022543" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Charles Lew <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/Question.20about.20generic.20associated.20lifetime.html#167022543">(May 31 2019 at 18:41)</a>:</h4>
<p>I'm using <a href="https://docs.rs/galemu" target="_blank" title="https://docs.rs/galemu">https://docs.rs/galemu</a> now as a workaround.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>